let arr = ["usename", "age", "sex"];
console.log(arr[0] + ":");
let msg = {};
let index = 0;

process.stdin.on("data", (data) => {
    console.log(data.toString());
    //输出我们输入的信息
    let infor = data.toString();
    msg[arr[index++]] = infor;
    if (index == 3) {
        console.log(msg);
        process.exit();
        //当前程序的退出
    }
    console.log(arr[index]);
})